package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Client entity);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client entity);

    int query4Count(QueryObject qo);

    List<?> query4List(QueryObject qo);

    void changePrincipal(@Param("priId") Long priId , @Param("id") Long id);

    Client selectByName(String name);


    void absorbClient(Client entity);

    void changeState(@Param("stateId") Long stateId ,@Param("id") Long id);

}